﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="ChooseExperiment.aspx.cs" Inherits="Admin_ChooseExperiment" Title="Admin ~ Select Experiment" %>

<%@ Register src="../Usercontrols/Footer.ascx" tagname="Footer" tagprefix="uc1" %>
<%@ Register src="../Usercontrols/Menu1.ascx" tagname="Menu1" tagprefix="uc2" %>
<%@ Register src="../Usercontrols/Header.ascx" tagname="Header" tagprefix="uc3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table cellpadding="0" cellspacing="0" width="100%">
  <tr>
     <td align="center" style="width:100%;">
         <table cellpadding="0" cellspacing="0" width="900">
         
  <tr >
      <td> 
          <uc3:Header ID="Header1" runat="server" />
      </td>
   </tr> 
                   
  <tr>
            <td align="left" >                  
                 <table cellpadding="2" cellspacing="0" width="100%" class="mainTableBkg">                    
                                <tr>
                                    <td colspan="2">
                                        <table >
                                            <tr>
                                            <td class="adminHeading">Select the&nbsp; Experiment</td>
                                            <td><asp:Label ID="lblMessage" CssClass="messageLabel" runat="server" ></asp:Label></td>
                                            <td align="right"  >
                                                <asp:HyperLink ID="HyperLink1" runat="server" 
                                                    NavigateUrl="~/Admin/EditReference.aspx">Go Back to Reference</asp:HyperLink>
                                                                    </td>
                                            </tr>
                                        </table>
                                    </td>
                                    
                                </tr> 
                                
                                <tr id="trChooseExpTxtBox" runat="server" >
                                    <td>
                                        <table >
                                        <tr class="ashBkg" id="ExpId" runat="server" visible="false"  >
                                            <td class='label' style="width: 131px">ID</td>                     
                                            <td> <asp:TextBox ID="txtExpId" runat="server" cssclass='textBox' Width='50px'  MaxLength="300" Height="20px" ReadOnly="True"></asp:TextBox> </td>
                                        </tr>
                                    
                                        <tr class="altanateAshBkg">
                                             <td class="label" style="width: 131px">Experiment Name</td>
                                            <td >
                                                <asp:TextBox ID="txtExperimentName" CssClass="textBox" runat="server" 
                                            Width="246px" ReadOnly="True" ></asp:TextBox></td>
                                         </tr>
                                        <tr class="ashBkg" id="tr1" runat="server" >
                                            <td class='label' style="width: 131px">Summary</td>                     
                                            <td> <asp:TextBox ID="txtSummary" runat="server" cssclass='textBox' Width='775px' 
                                                    MaxLength="300" Height="164px" TextMode="MultiLine" ReadOnly="True"></asp:TextBox> </td>
                                        </tr>
                                      </table>
                                    </td>                        
                                </tr>     
                                     
                                <tr class="altanateAshBkg">
                                        <td colspan="2">
                                            <table >
                                                <tr>
                                                <td style="height: 10px" colspan="2"> 
                                         <asp:Button ID="btnNavigate" runat="server" BorderStyle="Solid" 
                                             onclick="btnNavigate_Click" Text="Navigate to Edit" /></td>
                                        <td><asp:Button ID="btnAddExperiment" runat="server" Text="Add Experiment" 
                                                BorderStyle="Solid" onclick="btnAddExperiment_Click" Visible="False" />
                                        </td>
                                                </tr>
                                            </table>
                                        </td>
                                     
                                   </tr>
                                
                                <tr>                                                    
                                
                                    <td colspan="2">
                                                <asp:GridView  Width="888px" AutoGenerateEditButton="true"  
                                                    AutoGenerateColumns="false" ID="dgExperiment" 
                                                    runat="server" onrowediting="dgExperiment_RowEditing" 
                                                    onpageindexchanging="dgExperiment_PageIndexChanging" AllowPaging="True"  >
                                                    <Columns>      
                                                   <%-- <asp:CommandField ButtonType="Image" ShowDeleteButton="true" DeleteImageUrl="~/Images/Delete-16x16.png"  DeleteText="Delete" Visible="true" />                                      --%>
                                                        <asp:BoundField  DataField="experiment_id" HeaderText="Id"/>
                                                        <asp:BoundField  DataField="ExperimentName" HeaderText="Experiment Name"/>
                                                        <asp:BoundField  DataField="exp_summary" HeaderText="Summary"/>
                                                                                                     
                                                    </Columns>
                                                    <HeaderStyle CssClass="gridHeading" />
                                                    <AlternatingRowStyle CssClass="gridAltRowStyleStyle" />                                                                                        
                                                    <PagerSettings Position="Top" />
                                                    <RowStyle CssClass="gridRowStyle" />                                                                                       
                                                    <PagerStyle BorderStyle="Solid" />
                                                    <EditRowStyle CssClass="gridEditRow" />                                     
                                                </asp:GridView>
                                    </td>
                                </tr>                    
                                 
               </table>  
            </td> 
  </tr>
  
  <tr>
  <td>
      <uc1:Footer ID="Footer1" runat="server" />
  </td>
  </tr>
  
  </table>  
  </td> 
  </tr>
  
</table>
</asp:Content>

